home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2005 March
/
CMCD0305.ISO
/
Software
/
Shareware
/
Utilitare
/
emu
/
Emu8086_Setup_307c.exe
/
{app}
/
Samples
/
exetest.asm
< prev
next >
Wrap
Assembly Source File
|
2003-06-02
|
894b
|
46 lines
; AUTHOR Emu8086
; DATE May 23, 2002
; VERSION 1.00
; FILE EXETEST.ASM
; Directive to select
; "make EXE" by default when
; source file is loaded:
#MAKE_EXE#
DSEG SEGMENT 'DATA'
msg DB 'Hello, World!$', 13, 10
DSEG ENDS
SSEG SEGMENT STACK 'STACK'
DW 100h DUP(?)
SSEG ENDS
CSEG SEGMENT 'CODE'
;*******************************************
START PROC FAR
; set segment registers:
MOV AX, DSEG
MOV DS, AX
MOV ES, AX
; print "Hello, World!":
LEA DX, msg
MOV AH, 09h
INT 21h
; return to operating system:
MOV AH, 4Ch
INT 21h
RET
START ENDP
;*******************************************
CSEG ENDS
END START